<?php


namespace app\wechat\validate;


use think\Validate;

class Zoon extends Validate
{
    protected $rule=[
        'name|昵称'=>'require|max:5',
    ];
    protected $message=[
        'name.require'=>'昵称不允许为空',
        'name.max'=>'昵称最多五个字',
    ];
    protected $scene=[
        'nickname'=>['name'],
    ];
}